import service from '@/utils/request'

export interface CheckFileReq{
  md5:string | unknown
  size: number
}
export interface IsGetRadio{
  columnNumber: number
  lineNumber: number
  currentTime: number
}
export interface GetSourceMap{
  fileName: string
  entryName: string
}

// 获取sourceMap
export function getSourceMap (data:GetSourceMap) {
  return service({
    url:'/getSourceMap',
    responseType: 'blob',
    method: 'post',
    data
  })
}
// 存储source到服务器
export function isGetRadio (data:IsGetRadio) {
  return service({
    url: '/getRadio',
    responseType: 'blob',
    method: 'post',
    data
  })
}